#!/bin/sh

go build gohttpd.go
mkdir -p /opt/gohttpd
cp gohttpd html gohttpd_* /opt/gohttpd -rf
cp gohttpdmgr /etc/init.d -rf
\rm -rf gohttpd
echo For testing...
systemctl daemon-reload
service gohttpdmgr start
service gohttpdmgr stop
